package com.spark.invoicings.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 采购到货表
 * 
 * @author sunyan
 * @email sunyan@gmail.com
 * @date 2024-06-13 11:10:41
 */
@Data
@TableName("t_purchase_arrival")
public class PurchaseArrival implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 采购到货ID
	 */
	@TableId(type = IdType.AUTO)
	private Integer arrivalId;
	/**
	 * 入库状态：1-审批中，2-已入库，3-已驳回，4-已撤销
	 */
	private Integer entryStatusId;
	/**
	 * 供应商ID
	 */
	private Integer supplierId;
	/**
	 * 采购订单ID
	 */
	private Integer purchaseOrderId;
	/**
	 * 入库单ID
	 */
	private Integer warehouseReceiptId;
	/**
	 * 申请日期
	 */
	private Date requestDate;
	/**
	 * 申请人
	 */
	private String requester;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 审批人
	 * */
	private String approver;
	/**
	 * 审批时间
	 * */
	private String approvalTime;

	@TableField(exist = false)
	private DictData dictData;

	@TableField(exist = false)
	private ProcuredSupplier supplier;

	@TableField(exist = false)
	private WarehouseReceipt warehouseReceipt;

	@TableField(exist = false)
	private Order order;

	@TableField(exist = false)
	private List<ReceiptDetail> receiptDetails;

	public String getApprover() {
		return approver;
	}

	public void setApprover(String approver) {
		this.approver = approver;
	}

	public String getApprovalTime() {
		return approvalTime;
	}

	public void setApprovalTime(String approvalTime) {
		this.approvalTime = approvalTime;
	}

	public Integer getArrivalId() {
		return arrivalId;
	}

	public void setArrivalId(Integer arrivalId) {
		this.arrivalId = arrivalId;
	}

	public Integer getEntryStatusId() {
		return entryStatusId;
	}

	public void setEntryStatusId(Integer entryStatusId) {
		this.entryStatusId = entryStatusId;
	}

	public Integer getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Integer supplierId) {
		this.supplierId = supplierId;
	}

	public Integer getPurchaseOrderId() {
		return purchaseOrderId;
	}

	public void setPurchaseOrderId(Integer purchaseOrderId) {
		this.purchaseOrderId = purchaseOrderId;
	}

	public Integer getWarehouseReceiptId() {
		return warehouseReceiptId;
	}

	public void setWarehouseReceiptId(Integer warehouseReceiptId) {
		this.warehouseReceiptId = warehouseReceiptId;
	}

	public Date getRequestDate() {
		return requestDate;
	}

	public void setRequestDate(Date requestDate) {
		this.requestDate = requestDate;
	}

	public String getRequester() {
		return requester;
	}

	public void setRequester(String requester) {
		this.requester = requester;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public DictData getDictData() {
		return dictData;
	}

	public void setDictData(DictData dictData) {
		this.dictData = dictData;
	}

	public ProcuredSupplier getSupplier() {
		return supplier;
	}

	public void setSupplier(ProcuredSupplier supplier) {
		this.supplier = supplier;
	}

	public WarehouseReceipt getWarehouseReceipt() {
		return warehouseReceipt;
	}

	public void setWarehouseReceipt(WarehouseReceipt warehouseReceipt) {
		this.warehouseReceipt = warehouseReceipt;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public List<ReceiptDetail> getReceiptDetails() {
		return receiptDetails;
	}

	public void setReceiptDetails(List<ReceiptDetail> receiptDetails) {
		this.receiptDetails = receiptDetails;
	}
}
